'use strict';

function choose_common_elements(collection_a, collection_b) {

  //在这里写入代码
  let arr=collection_a.filter(function(i)
{
  for(let j of collection_b)
{
  if(i==j)
  return i;
}


});
return arr;






}

module.exports = choose_common_elements;
